// Goods interfaces
export interface GoodsQueryForm {
    goods_id: number;
    goods_name: string;
    goods_type: string;
    remarks: string;
}

export interface Goods {
    goods_id: number;
    goods_name: string;
    goods_type: string;
    remarks: string;
}

// Stock interfaces
export interface StockQueryForm {
    goods_id: number;
    goods_name: string;
    warning_threshold: number | null;
    stock_status: string;
    remarks: string;
}
 
export interface Stock {
    goods_id: number;
    goods_name: string;
    warning_threshold: number;
    stock_quantity: number;
    stock_status: string;
    remarks: string;
}

// Sales interfaces
export interface SalesQueryForm {
    sales_id: number;
    goods_id: number;
    goods_name: string;
    sales_price: number | null;
    sales_quantity: number | null;
    sales_time: [Date, Date] ;
    remarks: string;
}

export interface Sales {
    sales_id: number;
    goods_id: number;
    goods_name: string;
    sales_price: number;
    sales_quantity: number;
    sales_cost: number;
    sales_time: Date;
    remarks: string;
}

// Purchase interfaces
export interface PurchaseQueryForm {
    purchase_id: number;
    goods_id: number;
    goods_name: string;
    purchase_price: number | null;
    purchase_quantity: number | null;
    purchase_time: [Date, Date];
    remarks: string;
}

export interface Purchase {
    purchase_id: number;
    goods_id: number;
    goods_name: string;
    purchase_price: number;
    purchase_quantity: number;
    purchase_cost: number;
    purchase_time: Date;
    remarks: string;
}

// Employee interfaces
export interface EmployeeQueryForm {
    account_id: number;
    account_nickname: string;
    account_password: string;
    permission_level: number | null;
    full_name: string;
    gender: boolean | null;
    contact_info: string;
    remarks: string;
}

export interface Employee {
    account_id: number;
    account_nickname: string;
    account_password: string;
    permission_level: number;
    full_name: string;
    gender: boolean;
    contact_info: string;
    remarks: string;
}



//对话框
export interface FormItem {
    label: string;
    prop: string ;
    value: any;
    rules: {}[];
}
